app.service('extractRecordService', function ($http) {

    this.submitApplication = function (entity) {
        return $http.post('../extractRecord/submitApplication', entity);
    };

    this.findPage = function (pageNum, pageSize, searchEntity) {
        return $http.post("../extractRecord/findPage?pageNum=" + pageNum + "&pageSize=" + pageSize, searchEntity);
    };

    this.update = function (entity) {
        return $http.post("../extractRecord/update", entity);
    };

    this.findOne = function (id) {
        return $http.post("../extractRecord/findOne", {id: id})
    };

    this.schedule = function (entity) {
        return $http.post("../extractRecord/schedule", entity)
    };

    this.findServiceChargeBalance = function (subAccount) {
        let param = {"subAccount": subAccount};
        return $http.post("../extractRecord/findServiceChargeBalance", param);
    }
});